﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web/FarmMaster.master" AutoEventWireup="true" CodeFile="Join.aspx.cs" Inherits="Web_Join" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $('#<%=Save.ClientID %>').click(function () {
                if ($.trim($('#<%=Name.ClientID %>').val()) == '') {
                    alert('请输入您的姓名。');
                    $('#<%=Name.ClientID %>').focus();

                    return false;
                }

                if ($.trim($('#<%=Telphone.ClientID %>').val()) == '') {
                    alert('请输入您的电话。');
                    $('#<%=Telphone.ClientID %>').focus();

                    return false;
                }

                if ($.trim($('#<%=Age.ClientID %>').val()) == '') {
                    alert('请输入您的年龄。');
                    $('#<%=Age.ClientID %>').focus();

                    return false;
                }

                if (isNaN($.trim($('#<%=Age.ClientID %>').val()))) {
                    alert('您输入的年龄格式不正确，请重新输入。');
                    $('#<%=Age.ClientID %>').focus();

                    return false;
                }

                if ($.trim($('#<%=Country.ClientID %>').val()) == '') {
                    alert('请选择您所在的区/县。');
                    $('#<%=Country.ClientID %>').focus();

                    return false;
                }

                if ($.trim($('#<%=Street.ClientID %>').val()) == '') {
                    alert('请选择您所在的街道/镇。');
                    $('#<%=Street.ClientID %>').focus();

                    return false;
                }

                if ($.trim($('#<%=Village.ClientID %>').val()) == '') {
                    alert('请选择您所在的社区/村。');
                    $('#<%=Village.ClientID %>').focus();

                    return false;
                }

                return true;
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="main">
		<div class="left">
			<div class="left1">
				<div id="PARENT">
					<ul	id="navv">
						<li class="first"><a>培训通知</a>
						</li>
                        <li><a href="listTrain.aspx">培训通知</a></li> 
					</ul>
				</div>
			</div>
			
			<div class="left2">
				<div class="tle">
					<span class="text1">最新动态</span>
				</div>
				<div class="tents">
					<ul style=" padding-top:5px;">
						<asp:Repeater ID="Repeater3" runat="server">
                            <ItemTemplate>
                                <li><a href='<%=Toolkit.ApplicationRoot %>/Html/<%#Eval("url") %>'><%#Eval("Title").ToString().Length>12?Eval("Title").ToString().Substring(0,11)+"...":Eval("Title") %></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
					</ul>
				</div>
			</div>
		</div>
		<div class="right">
			<div class="headline">
				您的当前位置：首页-->培训通知-->培训登记
			</div>
			<div class="content">
                <asp:HiddenField ID="TrainID" runat="server" />
                <table cellpadding="0" cellspacing="1" class="Question">
                    <tr>
                        <td align="right" style="width:100px">姓名：</td>
                        <td align="center"><asp:TextBox ID="Name" runat="server" Width="130px"></asp:TextBox></td>
                        <td align="right" style="width:100px">电话：</td>
                        <td align="left"><asp:TextBox ID="Telphone" runat="server" Width="130px"></asp:TextBox></td>
                        <td align="right" style="width:100px">年龄：</td>
                        <td align="left"><asp:TextBox ID="Age" runat="server" Width="130px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" style="width:100px">区/县：</td>
                        <td align="center">
                            <asp:DropDownList ID="Country" runat="server" Width="130px" 
                                AutoPostBack="True" onselectedindexchanged="Country_SelectedIndexChanged"></asp:DropDownList></td>
                        <td align="right" style="width:100px">街道/镇：</td>
                        <td align="center">
                            <asp:DropDownList ID="Street" runat="server" Width="130px" 
                                AutoPostBack="True" onselectedindexchanged="Street_SelectedIndexChanged"></asp:DropDownList></td>
                        <td align="right" style="width:100px">社区/村：</td>
                        <td align="center"><asp:DropDownList ID="Village" runat="server" Width="130px" 
                                AutoPostBack="True"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="right" style="width:100px">备注：</td>
                        <td align="left" colspan="5"><asp:TextBox ID="Memo" runat="server" Width="98%" Height="150px" TextMode="MultiLine"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="center" colspan="6"><asp:Button ID="Save" runat="server" Text="登记" 
                                onclick="Save_Click" /></td>
                    </tr>
                </table>

                <font color="red">注：请学员务必填写自己有效的联系方式，如培训有改动，将以学员预留的联系方式为依据进行通知。</font>
			</div>
		</div>
	</div>
      
</asp:Content>